package com.wujie.liu.section03;

import java.util.*;


/**
 * Created by wujieliu on 2018/1/17.
 */
public class HelloDate {
    float f4 = 1e-43f;

    public static void main(String[] args) {
//        for (char c = 0; c < 128; c++) {
//            if (Character.isLowerCase(c)) {
//                System.out.println("value:" + (int) c + " character: " + c);
//            }
//        }
        int prev = 0;
        Random r = new Random(10);
        int currentInt = r.nextInt(10);
        System.out.println("i: 0 value: " + currentInt);
        for (int i = 1; i < 25; i++) {
            prev = currentInt;
            currentInt = r.nextInt(10);
            if (currentInt > prev) {
                System.out.println("i: " + i + " value: " + currentInt + " >:");
            } else if (currentInt < prev) {
                System.out.println("i: " + i + " value: " + currentInt + " <:");
            } else {
                System.out.println("i: " + i + " value: " + currentInt + " =:");
            }
        }
    }
}
